﻿@using System
@{
    Layout = null;
}

<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Zxw.Framework.NetCore快速开发框架Demo</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="~/components/bootstrap/dist/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link href="https://use.fontawesome.com/releases/v5.0.8/css/all.css" rel="stylesheet">
    <link href="~/components/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- Ionicons -->
    <link rel="stylesheet" href="~/components/Ionicons/css/ionicons.min.css">
    <link rel="stylesheet" href="~/components/bootstrap-tab/css/bootstrap-tab.css" />
    <link rel="stylesheet" href="~/lib/iconfont/iconfont.css"/>
    <!-- Theme style -->
    <link rel="stylesheet" href="~/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
          page. However, you can choose any other skin. Make sure you
          apply the skin class to the body tag so the changes take effect. -->
    <link rel="stylesheet" href="~/css/skins/skin-blue.min.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
        .embed-responsive-item {
            top: unset !important;
            left: unset !important;
        }
    </style>
</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS         | skin-blue                               |
|               | skin-black                              |
|               | skin-purple                             |
|               | skin-yellow                             |
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper" id="wrapper">
        <!-- Main Header -->
        <header class="main-header" id="header">
            <!-- Logo -->
            <a href="#" class="logo">
                <!-- mini logo for sidebar mini 50x50 pixels -->
                <span class="logo-mini"><b>D</b>emo</span>
                <!-- logo for regular state and mobile devices -->
                <span class="logo-lg"><b>Zxw</b>.Framework</span>
            </a>
            <!-- Header Navbar -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                    <span class="sr-only">Toggle navigation</span>
                </a>
                <!-- Navbar Right Menu -->
                <div class="navbar-custom-menu">
                    <ul class="nav navbar-nav">
                        <!-- Messages: style can be found in dropdown.less-->
                        <li>
                            <!-- Menu toggle button -->
                            <a href="javascript:lockScreen();">
                                <i class="fa fa-lock" title="Lock Screen"></i>
                            </a>
                        </li>
                        <li>
                            <!-- Menu toggle button -->
                            <a href="https://github.com/VictorTzeng" target="_blank">
                                <i class="fa fa-github" title="GitHub"></i>
                            </a>
                        </li>
                        <li>
                            <!-- Menu toggle button -->
                            <a href="@Url.Action("Default")" target="_blank">
                                <i class="iconfont icon-Vue" title="Element UI"></i>
                            </a>
                        </li>
                        <!-- User Account Menu -->
                        <li class="dropdown user user-menu">
                            <!-- Menu Toggle Button -->
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <!-- The user image in the navbar-->
                                <img src="https://avatars0.githubusercontent.com/u/7413525?s=400&u=eace68b7a452067f171bf43d02da090d8fd33f97&v=4" class="user-image" alt="User Image" asp-append-version="true" />
                                <!-- hidden-xs hides the username on small devices so only the image appears. -->
                                <span class="hidden-xs">@User.Identity.Name</span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- The user image in the menu -->
                                <li class="user-header">
                                    <img src="https://avatars0.githubusercontent.com/u/7413525?s=400&u=eace68b7a452067f171bf43d02da090d8fd33f97&v=4" class="img-circle" alt="User Image" asp-append-version="true" />
                                    <p>
                                        Victor Tzeng - Web Developer
                                        <small>Member since Nov. 2012</small>
                                    </p>
                                </li>
                                <!-- Menu Body -->
                                <li class="user-body">
                                    <div class="row">
                                        <div class="col-xs-4 text-center">
                                            <a href="#">Followers</a>
                                        </div>
                                        <div class="col-xs-4 text-center">
                                            <a href="#">Sales</a>
                                        </div>
                                        <div class="col-xs-4 text-center">
                                            <a href="#">Friends</a>
                                        </div>
                                    </div>
                                    <!-- /.row -->
                                </li>
                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    <div class="pull-left">
                                        <a href="#" class="btn btn-default btn-flat">Profile</a>
                                    </div>
                                    <div class="pull-right">
                                        <a href="@Url.Action("Logout","Account")" class="btn btn-default btn-flat">Sign out</a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <!-- Control Sidebar Toggle Button -->
                        <li>
                            <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>
        <!-- Left side column. contains the logo and sidebar -->
        <aside class="main-sidebar">
            <!-- sidebar: style can be found in sidebar.less -->
            <section class="sidebar">
                <!-- Sidebar user panel (optional) -->
                <div class="user-panel">
                    <div class="pull-left image">
                        <img src="https://avatars0.githubusercontent.com/u/7413525?s=400&u=eace68b7a452067f171bf43d02da090d8fd33f97&v=4" class="img-circle" alt="User Image" asp-append-version="true"/>
                    </div>
                    <div class="pull-left info">
                        <p>Victor Tzeng</p>
                        <!-- Status -->
                        <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                    </div>
                </div>
                <!-- search form (Optional)
                <form action="#" method="get" class="sidebar-form">
                    <div class="input-group">
                        <input type="text" name="q" class="form-control" placeholder="Search...">
                        <span class="input-group-btn">
                            <button type="submit" name="search" id="search-btn" class="btn btn-flat">
                                <i class="fa fa-search"></i>
                            </button>
                        </span>
                    </div>
                </form>-->
                <!-- /.search form -->
                <!-- Sidebar Menu -->
                <ul class="sidebar-menu" data-widget="tree" id="sys-menu">
                    <li class="header">系统菜单</li>
                    <!-- Optionally, you can add icons to the links -->
                    <!-- ko template:{name:'tmpl_menu',foreach:menus} -->
                    <!-- /ko -->
                </ul>
                <!-- /.sidebar-menu -->
            </section>
            <!-- /.sidebar -->
        </aside>
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper" id="content-wrapper">
            <!-- Main content -->
            <section class="content container-fluid" style="padding: 15px 0 0 0;">
                <div id="tabContainer"></div>
                <iframe id="tab-content" scrolling="auto" style="overflow-x:hidden; width: 100%; min-height: 100%;border: 0" src="@Url.Action("About", "Home")" onload="initSize();"></iframe>
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <!-- Main Footer -->
        <footer class="main-footer" id="footer">
            <!-- To the right -->
            <div class="pull-right hidden-xs">
                Anything you want
            </div>
            <!-- Default to the left -->
            <strong>Copyright &copy; @DateTime.Now.Year <a href="mailto:victor.tzeng@outlook.com">曾祥旺</a>.</strong> All rights reserved.
        </footer>
        <!-- Control Sidebar -->
        <aside class="control-sidebar control-sidebar-dark">
            <!-- Create the tabs -->
            <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
                <li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
                <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
            </ul>
            <!-- Tab panes -->
            <div class="tab-content">
                <!-- Home tab content -->
                <div class="tab-pane active" id="control-sidebar-home-tab">
                    <h3 class="control-sidebar-heading">Recent Activity</h3>
                    <ul class="control-sidebar-menu">
                        <li>
                            <a href="javascript:;">
                                <i class="menu-icon fa fa-birthday-cake bg-red"></i>
                                <div class="menu-info">
                                    <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
                                    <p>Will be 23 on April 24th</p>
                                </div>
                            </a>
                        </li>
                    </ul>
                    <!-- /.control-sidebar-menu -->
                    <h3 class="control-sidebar-heading">Tasks Progress</h3>
                    <ul class="control-sidebar-menu">
                        <li>
                            <a href="javascript:;">
                                <h4 class="control-sidebar-subheading">
                                    Custom Template Design
                                    <span class="pull-right-container">
                                        <span class="label label-danger pull-right">70%</span>
                                    </span>
                                </h4>
                                <div class="progress progress-xxs">
                                    <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
                                </div>
                            </a>
                        </li>
                    </ul>
                    <!-- /.control-sidebar-menu -->
                </div>
                <!-- /.tab-pane -->
                <!-- Stats tab content -->
                <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
                <!-- /.tab-pane -->
                <!-- Settings tab content -->
                <div class="tab-pane" id="control-sidebar-settings-tab">
                    <form method="post">
                        <h3 class="control-sidebar-heading">General Settings</h3>
                        <div class="form-group">
                            <label class="control-sidebar-subheading">
                                Report panel usage
                                <input type="checkbox" class="pull-right" checked>
                            </label>
                            <p>
                                Some information about this general settings option
                            </p>
                        </div>
                        <!-- /.form-group -->
                    </form>
                </div>
                <!-- /.tab-pane -->
            </div>
        </aside>
        <!-- /.control-sidebar -->
        <!-- Add the sidebar's background. This div must be placed
        immediately after the control sidebar -->
        <div class="control-sidebar-bg"></div>
    </div>
    <!-- ./wrapper -->
    <!-- REQUIRED JS SCRIPTS -->
    <!-- jQuery 3 -->
    <script src="~/components/jquery/dist/jquery.min.js"></script>
    <script src="~/components/jquery-ui/jquery-ui.min.js"></script>
    <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
    <script>
        $.widget.bridge('uibutton', $.ui.button);
    </script>
    <!-- Bootstrap 3.3.7 -->
    <script src="~/components/bootstrap/dist/js/bootstrap.min.js"></script>
    <script src="~/components/bootstrap-tab/js/bootstrap-tab.js"></script>
    <script src="~/lib/layer/layer.js"></script>
    <script src="~/js/knockout-3.4.2.js"></script>
    <script src="~/js/knockout.mapping.min.js"></script>
    <script src="~/js/jquery.tmpl.js"></script>
    <!-- AdminLTE App -->
    <script src="~/js/adminlte.min.js"></script>
    <script src="~/js/sysmenu.viewmodel.js"></script>
    <!-- Optionally, you can add Slimscroll and FastClick plugins.
    Both of these plugins are recommended to enhance the
    user experience. -->
    <script type="text/html" id="tmpl_menu">
        <!-- ko ifnot:children.length>0 -->
        <li data-bind="attr:{id:'menu_'+id}">
            <!-- ko if:parentId==0 -->
            <a href="javascript:void(0);" data-bind="html:$root.getMenuIcon(menuIcon,menuName),click:function(){$root.menuClick(id,menuName,routeUrl);}"></a>
            <!-- /ko -->
            <!-- ko ifnot:parentId==0 -->
            <a href="javascript:void(0);" data-bind="html:$root.getMenuIconNoSpan(menuIcon,menuName),click:function(){$root.menuClick(id,menuName,routeUrl);}"></a>
            <!-- /ko -->
        </li>
        <!-- /ko -->
        <!-- ko if:children.length>0 -->
        <li class="treeview" data-bind="attr:{id:'menu_'+id}">
            <a href="javascript:void(0);" data-bind="html:$root.getMenuIconExpand(menuIcon,menuName)">
            </a>
            <ul class="treeview-menu">
                <!-- ko template:{name:'tmpl_menu',foreach:children} -->
                <!-- /ko -->
            </ul>
        </li>
        <!-- /ko -->
    </script>
    <script type="text/javascript">
        function initSize() {
            var height = $(window).height();
            $("body, #wrapper").height(height);
            $("#content-wrapper").height(height-$("#header").height()-$("#footer").height()-35);
            $("#tab-content").height($("#content-wrapper").height()-$("#tabContainer").height()-15);
        }
        function lockScreen() {
            var index = layer.open({
                type: 2,
                content: '@Url.Action("LockScreen","Account")',
                area: ['100%', '100%'],
                closeBtn: false,
                title:'小憩一会儿~'
            });
            layer.full(index);
        }
        $(function () {
            ko.applyBindings(sysMenuModel, $("#sys-menu")[0]);
            sysMenuModel.loadMenus('@Url.Action("GetMenus","SysMenu")');
            $("#tabContainer").tabs({
                data: [
                    {
                        id: '52',
                        text: '关于项目',
                        url: "@Url.Action("About", "Home")",
                        closeable: false
                    }
                ],
                showIndex: 0,
                loadAll: false
            });
            initSize();
        });
        window.onresize = initSize;
    </script>
</body>
</html>